package designerMode.adapter;

import designerMode.adapter.normal.UserSevice;
import designerMode.adapter.classMode.UserAdapter;

import java.util.List;

public class Main {


    public static void main1(String[] args) {
        UserSevice userAdapter = new UserAdapter();
        System.out.println(userAdapter.getUser());

    }

    public static void main(String[] args) {
        List<Integer> integers = List.of(1, 2, 3, 4, 5);
        for (Integer integer : integers) {
            if (integer > 3) {
                integers.remove(integer);
            }

        }
        System.out.println(integers);
    }

}
